package com.liu.repository;

import com.liu.domain.text;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * Created by liu on 17-10-12.
 */
public interface TextRepository extends JpaRepository<text,Integer>{


    @Query("select t from text t order by t.time desc ")
    public List<text> findBytime();
}
